package org.fei.demo.spring.config;

import org.fei.demo.spring.beans.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MainConfig {

    @Bean
    public Person person(){
        return new Person("zhangsan",30);
    }
}
